package com.ysx.teacher.day20210923.ch08.dao;

import com.ysx.teacher.day20210923.ch08.entity.StudentEntity;

public interface StudentDao {

    /**
     * 把1个学生对象保存到mysql数据库中
     * @param student
     */
    int addStudent(StudentEntity student) throws  Exception;

    StudentEntity findStudentById(int id) throws  Exception;
}
